package org.celery.modules.goods.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.goods.entity.GoodsPackage;
import org.celery.modules.goods.vo.GoodsPackageVO;

/**
 * 商品套餐表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2022-04-05
 */
public class GoodsPackageWrapper extends BaseEntityWrapper<GoodsPackage, GoodsPackageVO>  {

    public static GoodsPackageWrapper build() {
        return new GoodsPackageWrapper();
    }

	@Override
	public GoodsPackageVO entityVO(GoodsPackage goodsPackage) {
		GoodsPackageVO goodsPackageVO = BeanUtil.copy(goodsPackage, GoodsPackageVO.class);

		return goodsPackageVO;
	}

}
